package springboot.demo;

import lombok.val;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import springboot.demo.component.StudentComponent;
import springboot.demo.controller.HelloController;
import springboot.demo.service.UserService;

import java.security.Provider;

@SpringBootApplication
public class SpringbootApplication {

	public static void main(String[] args) {
		ApplicationContext context = SpringApplication.run(SpringbootApplication.class, args);

//		UserService bean = context.getBean(UserService.class);
//		bean.print();

		//DI测试
//		HelloController bean1 = context.getBean(HelloController.class);
//		bean1.print();

	}

}
